﻿using System;
using System.Data;

namespace Shopping.Entities
{
    /// -----------------------------------------------------------------------------
    ///<summary>
    /// The Info class for the ProductGalleryInfo
    /// </summary>
    /// <remarks>
    /// </remarks>
    /// <history>
    /// </history>
    /// -----------------------------------------------------------------------------
    public class ProductGalleryInfo
    {
        #region Private Members
		
        private int _id;
        private int _productId;
        private string _path="";
        #endregion
        #region Constructors
        // initialization

        #endregion
        #region Public Properties
        /// <summary>
        /// Get and Set Property Data of File column Id in Table ProductGallery 
        /// </summary>
				
        public int Id
        {
            get{ return _id; }
            set{ _id = value; }
        }
				
        /// <summary>
        /// Get and Set Property Data of File column ProductId in Table ProductGallery 
        /// </summary>
				
        public int ProductId
        {
            get{ return _productId; }
            set{ _productId = value; }
        }
				
        /// <summary>
        /// Get and Set Property Data of File column Path in Table ProductGallery 
        /// </summary>
				
        public string Path
        {
            get{ return _path; }
            set{ _path = value; }
        }
				
        #endregion		
		
        #region IHydratable Implementation

        /// <summary>
        /// 
        /// </summary>        
        public void Fill(IDataReader oReader)
        {
            _id=int.Parse(oReader["Id"].ToString());
            _productId=int.Parse(oReader["ProductId"].ToString());
            _path=Convert.ToString(oReader["Path"]);
        }
        #endregion
    }
}